package me.base.commom.model.dto;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public abstract class BaseEntityDTO<ID> extends BaseDTO {

    /**
     * id
     */
    @ApiModelProperty(value = "唯一编码")
    protected ID id;

    /**
     * 启用状态标识
     */
    @ApiModelProperty(value = "启用状态标识", notes = "true:无效 false:有效")
    protected Boolean invalid = false;

    /**
     * 扩展属性
     */
    @ApiModelProperty(value = "扩展数据，可能是json字符串")
    protected String extra;
}
